/**
 * @Title: SysResourceServer.java 
 * @Description: TODO
 * @author <a href="mailto:psammead@126.com">Psammead</a>
 * @date 2011-7-15 下午10:29:57 
 * @version 1.0
 * Copyright 2011 by Psammead
 */
package com.psammead.dms.system.sercurity.service;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import com.psammead.dms.common.core.bo.Page;
import com.psammead.dms.system.sercurity.entity.SysResource;

/**
 * 系统资源业务逻辑接口
 * @ClassName: SysResourceServer
 * @Description: TODO
 * @author <a href="mailto:psammead@126.com">psammead</a>
 * @version 1.0
 * @date 2011-7-15
 */
public interface SysResourceService {
	/**
	 * 新增资源
	 * @Title: addSysResource
	 * @Description: TODO
	 * @param sysResource 
	 * @return void
	 * @throws	
	 */
	public void addSysResource(SysResource sysResource);
	
	/**
	 * 删除资源
	 * @Title: deleteSysResource
	 * @Description: TODO
	 * @param sysResourceId 
	 * @return void
	 * @throws	
	 */
	public void deleteSysResource(long id);
	
	/**
	 * 批量的删除资源
	 * @Title: deleteSysResources
	 * @Description: TODO
	 * @param sysResourceIds 
	 * @return void
	 * @throws	
	 */
	public void deleteSysResources(long[] ids);
	
	/**
	 * 修改资源
	 * @Title: updateSysResource
	 * @Description: TODO
	 * @param sysResource 
	 * @return void
	 * @throws	
	 */
	public void updateSysResource(SysResource sysResource);
	
	/**
	 * 查询资源列表结果集
	 * @Title: querySysResource
	 * @Description: TODO
	 * @param paramMap
	 * @param sortMap
	 * @return List<SysResource>
	 * @throws
	 */
	public List<SysResource> querySysResource(Map<String,Object> paramMap,
				LinkedHashMap<String,String> sortMap);
	
	/**
	 * 查询资源分页结果集
	 * @Title: querySysResource
	 * @Description: TODO
	 * @param paramMap
	 * @param sortMap
	 * @param pageNo
	 * @param pageSize
	 * @return Page<SysResource>
	 * @throws
	 */
	public Page<SysResource> querySysResource(Map<String,Object> paramMap,
			LinkedHashMap<String,String> sortMap, int pageNo, int pageSize);

}
